<%@ page language="java" pageEncoding="utf-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<%@page import="java.util.Calendar"%>
<html>
          <head>
		<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
		<title>根据驾驶员查询</title>
		<link rel="stylesheet" type="text/css" href="../resource/css/base.css">
		<script type="text/javascript" src="../resource/js/My97DatePicker/WdatePicker.js"></script>
		<s:actionmessage />
		<script type="text/javascript">
			function doSubmit(){
				document.forms[0].action = "loadByDriver.action";
				document.forms[0].submit();
			}
		</script>
	</head>
	<body  oncontextmenu="return false;" leftmargin="8" topmargin="8">
		<div class="tip">
			<span>当前位置:</span>根据驾驶员查询&nbsp;&gt;&nbsp;
		</div>
		<!--  搜索表单  -->
		<s:form name="infoForm" action="loadByDriver" namespace="/queryFee">
			<s:hidden name="clientId"/>
			<table width="98%" border="0" cellpadding="1" cellspacing="1"
				bgcolor="#CBD8AC" align="center" style="margin-top: 8px">
				<tr bgcolor='#EEF4EA'>
					<td align='center'>
						<table width="98%" height="26" border="0" cellpadding="0"  cellspacing="0" >
							<tr>
								<td width="8%" align="right">驾驶员姓名:</td>
								<td width='16%'>
									<s:textfield name="driverName" cssStyle="width:95%;"/>
								</td>
								<td width="11%" align="right">查询日期:</td>
								<td width="30%">
									<s:textfield cssStyle="width:46%;" name="startDate" onclick="WdatePicker({skin:'whyGreen',dateFmt:'yyyy-MM-dd'})"  cssClass="Wdate"/>
									-&nbsp;<s:textfield cssStyle="width:46%;" name="endDate" onclick="WdatePicker({skin:'whyGreen',dateFmt:'yyyy-MM-dd'})"  cssClass="Wdate"/>
								</td>
								<td width="15%" align="center">
									<input type="image" src="../resource/image/search.gif" height="20" border="0" class="np"
										onclick="doSubmit();" />
								</td>
							</tr>
						</table>
					</td>
				</tr>
			</table>
			<!--  内容列表   -->
			<table width="98%" border="0" cellpadding="2" cellspacing="1"
				bgcolor="#D1DDAA" align="center" style="margin-top: 8px">
				<tr bgcolor="#E7E7E7">
					<td height="24" colspan="13">
						&nbsp;运输列表&nbsp;
					</td>
				</tr>
				<tr align="center" bgcolor="#FAFAF1" height="22">
					<td >序号</td>
					<td >驾驶员姓名</td>
					<td >驾照号码</td>
					<td >驾照年份</td>
					<td >发货次数</td>
					<td >运输费用</td>
					<td >违章次数</td>
					<td >违章罚款</td>
					<td >事故次数</td>
					<td >经济损失</td>
				</tr>
				<s:iterator value="list" status="st" id="vo">
					<tr align='center' bgcolor="#FFFFFF" onMouseMove="javascript:this.bgColor='#FCFDEE';" onMouseOut="javascript:this.bgColor='#FFFFFF';" height="22">
						<td><s:property value="#st.count"/></td>
						<td><s:property value="driverName"/></td>
						<td><s:property value="driverLicense"/></td>
						<td><s:property value="licenseYear"/></td>
						<td><s:property value="sentTimes"/></td>
						<td><s:text name="format.number"><s:param value="totalFee"/></s:text></td>
						<td><s:property value="fineTimes"/></td>
						<td>
							<s:if test="#vo.fineCharge!=null">
								<s:text name="format.number"><s:param value="fineCharge"/></s:text>
							</s:if>
							<s:else>-</s:else>
						</td>
						<td><s:property value="accTimes"/></td>
						<td>
							<s:if test="#vo.accCharge!=null">
								<s:text name="format.number"><s:param value="accCharge"/></s:text>
							</s:if>
							<s:else>-</s:else>
						</td>
					</tr>
				</s:iterator>
				<!-- 引用统一的操作、分页功能页面 其中的url参数a、q、d分别用来传入增、查、删功能的action -->
				<jsp:include
					page="/WEB-INF/pages/frame/page.jsp?q=loadByDriver&cols=13&display=none" />
			</table>
		</s:form>
	</body>
	<script type="text/javascript" src="../resource/js/popup/popup.js"></script>
	<script type="text/javascript" src="../resource/js/popup/commonPopup.js"></script>
</html>